<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>添加商品</title>
  </head>
  <body>
	<h1>添加商品</h1>
	<form action="prod.jspx?m=add" method="post">
	商品名称:<input type="text" name="prodName" /><br/>
	商品价格:<input type="text" name="price" /><br/>
	<input type="submit" value="添加" />
	</form>
	<c:choose>
		<c:when test="${requestScope.code=='10001' }">
			<div style="color:red">商品名称或价格不能为空!</div>
		</c:when>
		<c:when test="${requestScope.code=='10004' }">
			<div style="color:red">系统繁忙，请稍后添加...</div>
		</c:when>
		<c:when test="${requestScope.code=='10005' }">
			<div style="color:red">请输入正确的价格!</div>
		</c:when>
	</c:choose>
  </body>
</html>
